// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from '@/util/js/http.js'
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import echarts from 'echarts'

Vue.use(iView)
Vue.use(ElementUI)

Vue.config.productionTip = false

Vue.prototype.$echarts = echarts
Vue.prototype.$axios =axios

//引入mock.js
require('./mock.js')


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})



//添加一个常用的时间整理过滤器 getYMD
Vue.filter('getYMD', function(input) {
    return input.split(' ')[0];
})

